import React from 'react'
import {Scene, Router, Stack, Actions, Modal} from 'react-native-router-flux'
import connectComponent from './../utils/connectComponent'


import * as UserDateScene from './../components/Dashboard/UserDateScene'
import * as UserChatsScene from './../components/Dashboard/UserChatsScene'
import * as UserShareScene from './../components/Dashboard/UserShareScene'
import * as UserCollectScene from './../components/Dashboard/UserCollectScene'
import * as UserHistoryScene from './../components/Dashboard/UserHistoryScene'
import * as UserOrderScene from './../components/Dashboard/UserOrderScene'
import * as UserPriceScene from './../components/Dashboard/UserPriceScene'
import * as SmsScene from './../components/Auth/SmsScene'
import * as SmsCodeScene from './../components/Auth/SmsCodeScene'
import webBrowserScene from './../components/common/WebBrowser'
import TaoBaoWebBrowser from './../components/common/TaoBaoWebBrowser'
import * as ShareModelScene from './../components/common/ShareModel'


const UserDatePage = connectComponent(UserDateScene)
const UserChatsPage = connectComponent(UserChatsScene)
const UserSharePage = connectComponent(UserShareScene)
const UserCollectPage = connectComponent(UserCollectScene)
const UserHistoryPage = connectComponent(UserHistoryScene)
const UserOrderPage = connectComponent(UserOrderScene)
const UserPricePage = connectComponent(UserPriceScene)
const SmsPage = connectComponent(SmsScene)
const SmsCodePage = connectComponent(SmsCodeScene)
const ShareModelPage = connectComponent(ShareModelScene)



const scenes = Actions.create(
  <Router>
    {require("./Scenes/scenesForTabBar")}
    {require("./Scenes/scenesForLists")}
    {require("./Scenes/scenesForUser")}
    {require("./Scenes/scenesForWeb")}
    <Scene key="UserDate" component={UserDatePage} title="个人资料" backButtonTintColor="#000" backTitle=" "/>
    <Scene key="UserChats" component={UserChatsPage} title="积分记录" backButtonTintColor="#000" backTitle=" "/>
    <Scene key="UserPrice" component={UserPricePage} title="我的收入" backButtonTintColor="#000" backTitle=" "/>
    <Scene key="UserShare" component={UserSharePage} title="推荐的人" backButtonTintColor="#000" backTitle=" "/>
    <Scene key="UserCollect" component={UserCollectPage} title="我的收藏记录" backButtonTintColor="#000" backTitle=" "/>
    <Scene key="UserHistory" component={UserHistoryPage} title="我的浏览记录" backButtonTintColor="#000" backTitle=" "/>
    <Scene key="UserOrder" component={UserOrderPage} title="我的订单" backButtonTintColor="#000" backTitle=" "/>
    <Scene key="webView" hideNavBar component={webBrowserScene}/>
    <Scene key="taoBaoWebView" hideNavBar component={TaoBaoWebBrowser}/>
    <Scene key="sms" hideNavBar component={SmsPage} title="手机号" />
    <Scene key="smsCode" hideNavBar component={SmsCodePage} title="验证码" />
    <Scene key="shareModel" component={ShareModelPage} title="创建分享" backButtonTintColor="#000" backTitle=" "/>
  </Router>
)

export default scenes;
